#include<iostream>
using namespace std;

int n;
int a[111];
int x;

int main()
{
    cin >> n;
    for (int i = 0;i < n;++i) cin >> x, a[x]++;
    cin >> x;
    if (a[x]) cout << "Yes";
    else cout << "No";
}